package com.ruoyi.project.platform.agent.basic;

import com.ruoyi.project.platform.Contract;
import com.ruoyi.project.platform.domain.RRobotRunning;
import lombok.Data;

@Data
public class Credential implements Contract<RRobotRunning> {
    String accessKey;
    String secretKey;
    String robotHost;

    @Override
    public Credential applyTo(RRobotRunning obj) {
        this.accessKey = obj.getPltKey();
        this.secretKey=obj.getPltSecret();
        this.robotHost=obj.getRobotUrl();
        return this;
    }
}
